<div class="row">
<div class="large-12 columns">
<div class="panel callout">
		<h6>View Fees (Matriculation)</h6>
	</div>	
<?if(isset($system_message))echo $system_message;?>
<table class="data-table">
	<?if(!empty($cca_fee)):?>
		<thead class="tabular-head">
		<tr>
			<th>Fee Name</th>
			<th>Fee Rate</th>
			<th>Fee Description</th>
			<th>Grade Level</th>
			<th>Fee Status</th>
			<th colspan="3">&nbsp;</th>
		</tr>
		</thead>
		<tbody class="tabular">
		<?foreach($cca_fee as $gld):?>
			<tr>
				<td><?=$gld->fee_name;?></td>
				<td style="text-align:right;">&#8369; <?=money($gld->fee_rate);?></td>
				<td style="min-width:100px;"><?=$gld->fee_desc;?></td>
				<td><?=$gld->level_desc;?></td>
				<td><label class="label label-inverse"><?=$gld->fee_stat;?></label></td>
				<td>
					<div class="btn-group">
					<a href="<?=site_url('update-fees').'/'.$gld->fee_id;?>" class="confirm btn btn-mini btn-success" title="Do you want to update fee?"><i class="icon-g-edit"></i></a>
					<a href="<?=site_url('delete-fees/cca/'.__link(intval($gld->fee_id)));?>" class="confirm btn btn-mini btn-danger" title="Are you sure you want to DELETE fee?"><i class="icon-g-circle-remove"></i></a>
					
					<?if($gld->fee_stat == 'inactive'):?>
						<? $hash = $this->authlink->hash_make($gld->fee_id);?>
						<a href="<?=site_url('enable-cca/'.$gld->fee_id.'/'.$hash);?>" class="confirm btn btn-mini btn-primary" title="Are you sure you want to Enable fee?">Enable</a>
					<?else:?>
						<? $hash = $this->authlink->hash_make($gld->fee_id);?>
						<a href="<?=site_url('disable-fee/'.$gld->fee_id.'/'.$hash);?>" class="confirm" title="Are you sure you want to Disable fee?"><button class="btn btn-mini"><i class="icon-check"></i></button></a>
					<?endif;?>
					</div>
				</td>
			</tr>
		<?endforeach;?>

		</tbody>
	<?else:?>
		<tr><td> No data avaialable</td></tr>
	<?endif;?>
</table>
</div>
</div>